package com.happycat.social.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author shenbin
 * @CreatedDate 2020-09-14
 * @Modified By:
 */
@Data
public class SocialTransDto {

    @ApiModelProperty(value = "支付人名币(元)", required = true)
    @NotNull(message = "支付金额不能为空")
    private Double payAmount;

    @ApiModelProperty(value = "获得的猫粮数量", required = true)
    @NotNull(message = "猫粮数量不能为空")
    private Integer receiveAmount;

    @ApiModelProperty(value = "支付渠道: 2微信", required = true)
    @NotEmpty(message = "支付渠道不能为空")
    @Range(min = 2, max = 2, message = "参数值非法")
    private Integer payChannel;

    @ApiModelProperty(value = "支付渠道: 0.APP, 1.小程序, 2.公众号", notes = "目前支持0和1",required = true)
    @NotEmpty(message = "支付来源不能为空")
    @Range(min = 0, max = 2, message = "参数值非法")
    private Integer paySource;

    @ApiModelProperty(value = "第三方房间id(有的是在房间里给主播赠送的，此时需要记录房间id)")
    private String roomId;

    @ApiModelProperty(value = "支付预认证信息", required = true)
    @NotNull(message = "支付预认证信息不能为空")
    private String raw;

    @ApiModelProperty(hidden = true)
    private String ip;
}
